
import { DTaroAjax } from '@/http/http'

const base = '/api/cookcar-car-auth'

const cookCarAuth = {
    saveCarRigister(params) {
        return DTaroAjax(`${base}/carAuth/save`, params, 'POST')
    },
    transportCarlist(params) {
        return DTaroAjax(`${base}/carAuth/MyCarList`, params)
    },
    myApplyList(params) {
      return DTaroAjax(`${base}/carAuth/myApplyList`, params)
  },
    myCarDetail(params){
      return DTaroAjax(`${base}/carAuth/MyCarDetail`, params)
    },
    delMyCar(params){
        return DTaroAjax(`${base}/carAuth/deleteTransCar`, params)
    },
	getTransCarCheck(params) {
      return DTaroAjax(`${base}/carAuth/transCarCheck`, params, 'post')
    },
    getTransCarCheckDetail(id) {
      return DTaroAjax(`${base}/carAuth/MyCarDetail?id=${id}`, {}, 'get')
    },
    checkCarCheck(data) {
      return DTaroAjax(`${base}/carAuth/approveTransCar`, data, 'post', true, true, true)
    },
}

export default cookCarAuth
